Optimal. Leaf size=136 \[ \frac {2 (b+2 c x) (-3 b e g+2 c d g+4 c e f)}{3 e (2 c d-b e)^3 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac {2 (e f-d g)}{3 e^2 (d+e x) (2 c d-b e) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}} \]
________________________________________________________________________________________
Rubi [A] time = 0.14, antiderivative size = 136, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {792, 613} \begin {gather*} \frac {2 (b+2 c x) (-3 b e g+2 c d g+4 c e f)}{3 e (2 c d-b e)^3 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac {2 (e f-d g)}{3 e^2 (d+e x) (2 c d-b e) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 613
Rule 792
Rubi steps
\begin {align*} \int \frac {f+g x}{(d+e x) \left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx &=-\frac {2 (e f-d g)}{3 e^2 (2 c d-b e) (d+e x) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac {(4 c e f+2 c d g-3 b e g) \int \frac {1}{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx}{3 e (2 c d-b e)}\\ &=\frac {2 (4 c e f+2 c d g-3 b e g) (b+2 c x)}{3 e (2 c d-b e)^3 \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac {2 (e f-d g)}{3 e^2 (2 c d-b e) (d+e x) \sqrt {d (c d-b e)-b e^2 x-c e^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 149, normalized size = 1.10 \begin {gather*} \frac {2 b^2 e^2 (2 d g+e (f+3 g x))+4 b c e \left (d^2 g+d e (2 g x-4 f)+e^2 x (3 g x-2 f)\right )-8 c^2 \left (d^3 g+d^2 e (g x-f)+d e^2 x (2 f+g x)+2 e^3 f x^2\right )}{3 e^2 (d+e x) (b e-2 c d)^3 \sqrt {(d+e x) (c (d-e x)-b e)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [B] time = 127.73, size = 20130, normalized size = 148.01 \begin {gather*} \text {Result too large to show} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 7.16, size = 407, normalized size = 2.99 \begin {gather*} \frac {2 \, \sqrt {-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e} {\left (2 \, {\left (4 \, c^{2} e^{3} f + {\left (2 \, c^{2} d e^{2} - 3 \, b c e^{3}\right )} g\right )} x^{2} - {\left (4 \, c^{2} d^{2} e - 8 \, b c d e^{2} + b^{2} e^{3}\right )} f + 2 \, {\left (2 \, c^{2} d^{3} - b c d^{2} e - b^{2} d e^{2}\right )} g + {\left (4 \, {\left (2 \, c^{2} d e^{2} + b c e^{3}\right )} f + {\left (4 \, c^{2} d^{2} e - 4 \, b c d e^{2} - 3 \, b^{2} e^{3}\right )} g\right )} x\right )}}{3 \, {\left (8 \, c^{4} d^{6} e^{2} - 20 \, b c^{3} d^{5} e^{3} + 18 \, b^{2} c^{2} d^{4} e^{4} - 7 \, b^{3} c d^{3} e^{5} + b^{4} d^{2} e^{6} - {\left (8 \, c^{4} d^{3} e^{5} - 12 \, b c^{3} d^{2} e^{6} + 6 \, b^{2} c^{2} d e^{7} - b^{3} c e^{8}\right )} x^{3} - {\left (8 \, c^{4} d^{4} e^{4} - 4 \, b c^{3} d^{3} e^{5} - 6 \, b^{2} c^{2} d^{2} e^{6} + 5 \, b^{3} c d e^{7} - b^{4} e^{8}\right )} x^{2} + {\left (8 \, c^{4} d^{5} e^{3} - 28 \, b c^{3} d^{4} e^{4} + 30 \, b^{2} c^{2} d^{3} e^{5} - 13 \, b^{3} c d^{2} e^{6} + 2 \, b^{4} d e^{7}\right )} x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 228, normalized size = 1.68 \begin {gather*} -\frac {2 \left (c e x +b e -c d \right ) \left (6 b c \,e^{3} g \,x^{2}-4 c^{2} d \,e^{2} g \,x^{2}-8 c^{2} e^{3} f \,x^{2}+3 b^{2} e^{3} g x +4 b c d \,e^{2} g x -4 b c \,e^{3} f x -4 c^{2} d^{2} e g x -8 c^{2} d \,e^{2} f x +2 b^{2} d \,e^{2} g +b^{2} e^{3} f +2 b c \,d^{2} e g -8 b c d \,e^{2} f -4 c^{2} d^{3} g +4 c^{2} d^{2} e f \right )}{3 \left (b^{3} e^{3}-6 b^{2} c d \,e^{2}+12 b \,c^{2} d^{2} e -8 c^{3} d^{3}\right ) \left (-c \,e^{2} x^{2}-b \,e^{2} x -b d e +c \,d^{2}\right )^{\frac {3}{2}} e^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.20, size = 872, normalized size = 6.41 \begin {gather*} \frac {\left (\frac {2\,b\,g}{3\,e\,{\left (b\,e-2\,c\,d\right )}^3}-\frac {4\,c\,d\,g}{3\,e^2\,{\left (b\,e-2\,c\,d\right )}^3}\right )\,\sqrt {c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x}}{d+e\,x}+\frac {\left (\frac {2\,d\,g}{3\,b^2\,e^4-12\,b\,c\,d\,e^3+12\,c^2\,d^2\,e^2}-\frac {2\,e\,f}{3\,b^2\,e^4-12\,b\,c\,d\,e^3+12\,c^2\,d^2\,e^2}\right )\,\sqrt {c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x}}{{\left (d+e\,x\right )}^2}+\frac {\left (x\,\left (\frac {\left (e\,\left (b\,e-c\,d\right )+c\,d\,e\right )\,\left (\frac {4\,c^3\,e\,\left (3\,b\,g-2\,c\,f\right )}{3\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}+\frac {4\,b\,c^3\,e\,g}{3\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}-\frac {8\,c^3\,g\,\left (e\,\left (b\,e-c\,d\right )+c\,d\,e\right )}{3\,e\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}\right )}{c\,e^2}-\frac {2\,c^2\,\left (8\,g\,b^2\,e^2-16\,g\,b\,c\,d\,e-10\,f\,b\,c\,e^2+8\,g\,c^2\,d^2+16\,f\,c^2\,d\,e\right )}{3\,e\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}-\frac {2\,b\,c^2\,e\,\left (3\,b\,g-2\,c\,f\right )}{3\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}+\frac {8\,c^3\,d\,g\,\left (b\,e-c\,d\right )}{3\,e\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}\right )+\frac {d\,\left (b\,e-c\,d\right )\,\left (\frac {4\,c^3\,e\,\left (3\,b\,g-2\,c\,f\right )}{3\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}+\frac {4\,b\,c^3\,e\,g}{3\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}-\frac {8\,c^3\,g\,\left (e\,\left (b\,e-c\,d\right )+c\,d\,e\right )}{3\,e\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}\right )}{c\,e^2}-\frac {b\,c\,\left (8\,g\,b^2\,e^2-16\,g\,b\,c\,d\,e-10\,f\,b\,c\,e^2+8\,g\,c^2\,d^2+16\,f\,c^2\,d\,e\right )}{3\,e\,{\left (b\,e-2\,c\,d\right )}^2\,\left (b^2\,c\,e^2-4\,b\,c^2\,d\,e+4\,c^3\,d^2\right )}\right )\,\sqrt {c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x}}{\left (d+e\,x\right )\,\left (b\,e-c\,d+c\,e\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {f + g x}{\left (- \left (d + e x\right ) \left (b e - c d + c e x\right )\right )^{\frac {3}{2}} \left (d + e x\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________